/*
* 通用注册components下的所有组件
* 命名方式为驼峰为前缀
*/
const requireAll = requireContext => requireContext.keys().map(requireContext);
const req = require.context('./', false, /\.vue$/);
const valueArr = requireAll(req);
const keyArr = req.keys().map(item => item.match(/.\/(\S*).vue/)[1]);
let component = {};
for (let idx in keyArr) {
  component[keyArr[idx]] = valueArr[idx].default;
}
export default component;
